package exception

import "fmt"

// 错误：目标字符无法找到
type ErrCharNotFound struct {
	Char string
}

func (e ErrCharNotFound) Error() string {
	return fmt.Sprintf("char [%v] is not found", e.Char)
}

// 错误：目标index无法找到
type ErrIndexNotFound struct {
	Index int
}

func (e ErrIndexNotFound) Error() string {
	return fmt.Sprintf("index [%v] is not found", e.Index)
}
